namespace QLKHCN.Models.Entities
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("LoaiNhiemVu")]
    public partial class LoaiNhiemVu
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public LoaiNhiemVu()
        {
            LoaiNhiemVu11 = new HashSet<LoaiNhiemVu>();
            NhiemVus = new HashSet<NhiemVu>();
        }

        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int ID { get; set; }

        [Column("LoaiNhiemVu")]
        [StringLength(50)]
        public string LoaiNhiemVu1 { get; set; }

        public int? LoaiNhiemVuID { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<LoaiNhiemVu> LoaiNhiemVu11 { get; set; }

        public virtual LoaiNhiemVu LoaiNhiemVu2 { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<NhiemVu> NhiemVus { get; set; }
    }
}
